import 'package:flutter/material.dart';
import 'package:giwiki/screens/init_screen.dart';
import 'package:giwiki/src/rust/frb_generated.dart';

Future<void> main() async {
  await RustLib.init();
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData.light(useMaterial3: true).copyWith(
        dividerColor: Colors.transparent,
        scaffoldBackgroundColor: Colors.blueGrey.shade50,
        appBarTheme: ThemeData.light(useMaterial3: true).appBarTheme.copyWith(
              backgroundColor: Colors.blueGrey.shade50,
              foregroundColor: Colors.black,
            ),
      ),
      darkTheme: ThemeData.dark(useMaterial3: true).copyWith(
        dividerColor: Colors.transparent,
      ),
      home: const InitScreen(),
    );
  }
}
